package day1104.demo01;

import java.util.function.BiPredicate;
import java.util.function.Predicate;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/4 15:39
 */

public class Test2 {
    public static void main(String[] args) {
        //断言型函数式接口
        Predicate<String> predicate = t->t.length()==6;
        boolean b = predicate.test("nihao");
        System.out.println(b);

        BiPredicate<String,String> predicate1 =(a, c)->a.equals(c);
        System.out.println(predicate1.test("nihao", "shijei"));
    }
}
